import request from '@/utils/request'

export function settingNickname(data) {
    return request({
      url: '/setting/nickname',
      method: 'post',
      data: data
    })
}
export function settingName(data) {
    return request({
      url: 'setting/name',
      method: 'post',
      data: data
    })
}
export function getCode(data) {
    return request({
      url: '/user/send_code',
      method: 'post',
      data: data
    })
}
export function settingPhone(data) {
  return request({
    url: 'setting/phone',
    method: 'post',
    data: data
  })
}
export function settingWechat(data) {
  return request({
    url: '/setting/wechat',
    method: 'post',
    data: data
  })
}
export function settingPassword(data) {
  return request({
    url: '/setting/password',
    method: 'post',
    data: data
  })
}
export function settingPasswordByOrigin(data) {
  return request({
    url: '/setting/pwd_by_origin',
    method: 'post',
    data: data
  })
}
export function settingAvatar(data) {
  return request({
    url: '/setting/avatar',
    method: 'post',
    data: data
  })
}
